<?php
namespace app\modules\admin\forms\attribute;

use app\common\forms\BaseForm;

class AttributeForm extends BaseForm{

    public $attr_id;
    public $merchant_id;
    public $goods_id;
    public $attr_name;

    public function rules()
    {
        return [
            ['merchant_id','required','message'=>\Yii::t("app","商户ID不能为空")],
            ['goods_id','required','message'=>\Yii::t("app","商品ID不存在")],
            ['attr_name','required','message'=>\Yii::t("app","名称不能为空")],
            ['attr_id','safe']
        ];
    }
}